<template>
	<view class="conbox">
		<view class="line">
			
		</view>
		<view class="manjianbox">
			<view class="sj-txt">
				满减配送费
			</view>
			<evan-switch v-model="checked" @change="Switchcg" active-color="#07C160"
				inactive-color="#AFAFAF"></evan-switch>
		</view>
		
		<view class="digndanmoney">
			<view class="inpbox">
				<view class="money-txt">
					输入订单金额
				</view>
				<view class="inputbox">
					<input type="number" placeholder="输入金额"/>
				</view>
			</view>
			<view class="tips">
				订单金额达到设定值后，免配送费
			</view>
		</view>
		
		<view class="line">
			
		</view>
		<view class="manjianbox">
			<view class="sj-txt">
				满减红包
			</view>
			<evan-switch v-model="checked" @change="Switchcg" active-color="#07C160"
				inactive-color="#AFAFAF"></evan-switch>
		</view>
		
		<view class="digndanmoney">
			<view class="inpbox">
				<view class="money-txt">
					输入订单金额
				</view>
				<view class="inputbox">
					<input type="number" placeholder="输入金额"/>
				</view>
			</view>
			<view class="inpbox">
				<view class="money-txt">
					红包金额
				</view>
				<view class="inputbox">
					<input type="number" placeholder="输入红包"/>
				</view>
			</view>
			<view class="tips">
				订单金额达到设定值后，赠送店铺红包
			</view>
		</view>
		
		<view class="bom-box">
			<view class="tips-tit">
				提示：商家营销活动费用由商家自费
			</view>
			<view class="bom-btn">
				确定
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				checked:false
			};
		},
		methods: {
			Switchcg() {
				console.log(this.checked,'checked');
			}
		},
	}
</script>

<style lang="scss" scoped>
	.conbox{
		background-color: #f5f5f5;
		height: 100vh;
		
		.line{
			width: 750rpx;
			height: 22rpx;
			background-color: #f5f5f5;
		}
		.manjianbox{
			width: 750rpx;
			height: 102rpx;
			background: #FFFFFF;
			display: flex;
			align-items: center;
			justify-content: space-between;
			border-bottom: 1rpx solid #F5F5F5;
			padding: 0 30rpx;
			box-sizing: border-box;
			
			.sj-txt {
				width: 50%;
				height: 40rpx;
				font-weight: 500;
				font-size: 28rpx;
				color: #222222;
				text-align: left;
			}
		}
		
		.digndanmoney{
			width: 750rpx;
			min-height: 200rpx;
			background: #FFFFFF;
			padding: 50rpx 30rpx;
			box-sizing: border-box;
			
			.inpbox{
				width: 100%;
				height: 80rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;
				margin-bottom: 26rpx;
				
				.money-txt{
					width: 168rpx;
					height: 40rpx;
					font-weight: 400;
					font-size: 28rpx;
					color: #666666;
					text-align: left;
				}
				
				.inputbox{
					width: 440rpx;
					height: 80rpx;
					background: #F5F5F5;
					border-radius: 16rpx 16rpx 16rpx 16rpx;
					display: flex;
					align-items: center;
					justify-content: center;
				}
			}
			
			.tips{
				width: 100%;
				height: 36rpx;
				font-weight: 400;
				font-size: 24rpx;
				color: #FF4F21;
				text-align: right;
			}
		}
	
	}
	
	.bom-box{
		width: 750rpx;
		height: 256rpx;
		background: #FFFFFF;
		border-radius: 24rpx 24rpx 0rpx 0rpx;
		padding: 32rpx 30rpx;
		box-sizing: border-box;
		position: fixed;
		bottom: 0;
		left:0;
		
		.tips-tit{
			width: 100%;
			height: 36rpx;
			font-weight: 400;
			font-size: 24rpx;
			color: #FF4F21;
			text-align: center;
		}
		
		.bom-btn{
			width: 690rpx;
			height: 88rpx;
			background: #247EFF;
			border-radius: 44rpx 44rpx 44rpx 44rpx;
			text-align: center;
			line-height: 88rpx;
			margin-top: 26rpx;
			font-weight: 400;
			font-size: 30rpx;
			color: #FFFFFF;
		}
	}
</style>
